package jp.co.tms.internal.data;

import java.util.LinkedList;
import java.util.Queue;

import jp.co.tms.internal.task.ITask;

public class TaskQueue implements ITaskQueue{

	private Queue<ITask> _model = new LinkedList<ITask>();
	
	public TaskQueue(){	
	}
	
	synchronized public ITask peek(){
		return _model.peek();
	}
	
	synchronized public ITask poll(){
		return _model.poll();
	}
	
	synchronized public boolean offer(ITask job){
		return _model.offer(job);
	}
	
	synchronized public boolean contails(ITask job){
		return _model.contains(job);
	}
	
	synchronized public boolean remove(ITask job){
		return _model.remove(job);
	}
}
